﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
namespace AprenderComendo.Models
{
    public class Presentation
    {
        private readonly string title;
        private readonly DateTime date;
        private readonly IList<Person> authors;

        public Presentation(string title, DateTime date, List<Person> authors)
        {
            this.title = title;
            this.authors = authors;
            this.date = date;
        }

        public Presentation()
        {
        }

        [Required(ErrorMessage = "Please fill the title.")]
        public string Title
        {
            get { return title; }
        }

        [Required(ErrorMessage = "Please give me the date.")]
        public DateTime Date
        {
            get { return date; }
        }

        public IList<Person> Authors
        {
            get { return authors; }
        }

        public int Id { get; set; }
    }
}